package hhpoll.dao;

import java.util.Date;
import java.util.List;

import hhpoll.domain.Poll;

public interface PollDAO extends GenericDAO<Poll, Long> {
	
	public abstract List<Poll> findByAdministrator(String email);
	public abstract List<Poll> findByParticipant(String email);
	public abstract List<Poll> findActiveByAdministrator(Date start, Date end, String email);
	public abstract List<Poll> findActiveByParticipant(Date start, Date end, String email);
	public abstract List<Poll> listPublic();
	public abstract List<Poll> listActivePublic(Date start, Date end);
	
}
